﻿<?xml version="1.0" encoding="utf-8"?>
<Window
    x:Class="Automator.Tasks.Windows.FileDownloadTaskEditWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:ctrls="clr-namespace:Automator.Tasks.Core.UI;assembly=Automator.Tasks.Core"
    Title="Edit"
    ShowInTaskbar="False"
    WindowStartupLocation="CenterOwner"
    ResizeMode="CanResize"
    MinWidth="430"
    MinHeight="280"
    Background="{x:Static SystemColors.ControlBrush}"
    Width="430"
    Height="280">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition
                Height="Auto" />
            <RowDefinition
                Height="*" />
            <RowDefinition
                Height="Auto" />
        </Grid.RowDefinitions>
        <ctrls:EditTaskHeader
            x:Name="header"
            Grid.Row="0" />
        <StackPanel
            Orientation="Vertical"
            x:Name="pnlContent"
            Grid.Row="1">
            <TextBlock
                Margin="4"
                Text="Remote file: " />
            <TextBox
                x:Name="edtWebFile"
                Margin="4"
                VerticalContentAlignment="Center" />
            <TextBlock
                Margin="4"
                Text="Downloaded file: " />
            <DockPanel
                LastChildFill="True">
                <Button
                    x:Name="btnSave"
                    Click="BtnSave_Click"
                    DockPanel.Dock="Right"
                    Margin="0,4,4,4"
                    ToolTip="Select file location"
                    Padding="4,1,4,1">
                    <Image
                        Source="/Automator.Tasks.Net;component/resources/btnSave.png"
                        Width="16"
                        Height="16" />
                </Button>
                <TextBox
                    x:Name="edtLocalFile"
                    Margin="4"
                    VerticalContentAlignment="Center" />
            </DockPanel>
        </StackPanel>
        <ctrls:EditTaskFooter
            x:Name="footer"
            Grid.Row="2" />
    </Grid>
</Window>